function [bstResult1, timeElapsed, resAIO] = Coreg_single_dataset(Ks, Y, nRepeat)
[nSmp, ~, nKernel] = size(Ks);
nCluster = length(unique(Y));
if ~exist('nRepeat', 'var')
    nRepeat = 1;
end

tic;
res_coreg = [];
for i1 = 1:nRepeat
    [label_coreg, H_normalized] = Coreg_config_auto(Ks, nCluster);
    res_coreg = [res_coreg; ClusteringMeasure(Y, label_coreg)];
end
resAIO = mean(res_coreg, 1);
bstResult1 = max(resAIO, [], 1);
timeElapsed = toc;